import {useNavigate} from "react-router-dom";
import Header from "./components/header";
import Main from "./components/main";
import Footer from "./components/footer";
import Star from "@/view/star";

function Home() {
  const navigate = useNavigate();
  const handleClick = () => {
    // 在点击时进行编程式导航到菜单页面
    navigate("/menu");
  };
  return (
    <>
      <Star></Star>
      <Header></Header>
      <Main></Main>
      <Footer></Footer>
    </>
  );
}
export default Home;
